package com.example.job;

import org.quartz.Job;
import org.quartz.JobDataMap;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;

/**
 * @Classname SysJob
 * @Description TODO
 * @Date 2022/8/2 11:09
 * @Created by XiongXiong
 * @Author: X.I.O
 */
public class SysJob implements Job {

    @Override
    public void execute(JobExecutionContext jobExecutionContext) throws JobExecutionException {
        JobDataMap jobDataMap=jobExecutionContext.getMergedJobDataMap();
        IJob iJob=(IJob)jobDataMap.get(IJob.class.getName());
        if(iJob!=null){
            iJob.execute();
        }
    }
}
